package me.yushuai.wukong.base.api.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * 仅用于更新配置项的值
 *
 * @author zhoushuai@189.cn
 * @since 2022-09-13
 */
@Data
public class UpdateConfValueDTO {

    /**
     * 配置项编号
     */
    @Null(message = "conf.id.Null")
    private Long id;
    /**
     * 系统配置ID
     */
    @NotNull(message = "conf.groupId.NotNull")
    private Long groupId;

    private String value1;

    private String value2;

    public UpdateConfValueDTO() {
    }

    public UpdateConfValueDTO(Long confId, Long groupId, String value1, String value2) {
        this.id = confId;
        this.groupId = groupId;
        this.value1 = value1;
        this.value2 = value2;
    }
}